<?php

/**
 * Input Secure Class
 * @author ReGeDa
 */
class Input_Handler extends Event_Handler {

	/**
	 * Test Page
	 */
	public function on_xss() {

		$original = $this->input->post('t');
		$t = $this->input->post('t', TRUE);

		if ($t === FALSE)
			$t = platcode()->plugins->import('XSS')->get_last_error();

		platcode()->raw = array(
			'post' => $original,
			'answer' => $t
		);

		$this->output->xslt('xss_test');
	}
}

// end of file